	public static cPlayer[] tegPlayers;
	public static cCountry[] tegCountries;
	public Random random;
	
	public Image boardImg;
	public Image cursorImg;
	public Image diceImg;
	public Image cardsImg;

	public void initMatch()
	{
		cameraX = INGAME.VIEWPORT_X;
		cameraY = INGAME.VIEWPORT_Y;
		cursorX = INGAME.VIEWPORT_X + INGAME.VIEWPORT_W / 2;
		cursorY = INGAME.VIEWPORT_Y + INGAME.VIEWPORT_H / 2;
		try
		{
			boardImg = Image.createImage(SPRITES.BOARD_IMAGE);
			cursorImg = Image.createImage(SPRITES.CURSOR_IMAGE);
			diceImg = Image.createImage(SPRITES.DICE_IMAGE);
			cardsImg = Image.createImage(SPRITES.CARDS_IMAGE);
		}
		catch(Exception e)
		{
		}
	
		// INIT COUNTRIES AND ITS OWNERS
		tegCountries = new cCountry[COUNTRY_INFO.TOTAL_COUNTRIES];
			
		int curPlayer = 0;
	
		random = new Random(System.currentTimeMillis());
		int countriesPerPlayer = COUNTRY_INFO.TOTAL_COUNTRIES / tegPlayers.length;
		int lastIndex = 0;
	
		for(int i = 0; i < COUNTRY_INFO.TOTAL_COUNTRIES - (COUNTRY_INFO.TOTAL_COUNTRIES % tegPlayers.length); i++)
		{
			do
			{
				do
				{
					curPlayer = random.nextInt() % rules[RULES.MATCH_PLAYERS];
				}
				while(curPlayer < 0);
			}
			while(tegPlayers[curPlayer].ownedCountries >= countriesPerPlayer);
			tegCountries[i] = new cCountry(COUNTRY_INFO.NAME[i], COUNTRY_INFO.CONTINENT[i], tegPlayers[curPlayer].getId(), COUNTRY_INFO.LIMITS[i], COUNTRY_INFO.RECT[i], COUNTRY_INFO.CARD_IMAGE[i], COUNTRY_INFO.ALASKA + i);
		}
		
		System.out.println("");
		
		int missingCountries = COUNTRY_INFO.TOTAL_COUNTRIES % tegPlayers.length;
		int lastOne = -1;
		int offset = 1;
		
		while(missingCountries > 0)
		{
			do
			{
				curPlayer = random.nextInt() % rules[RULES.MATCH_PLAYERS];
			}
			while(curPlayer < 0 || curPlayer == lastOne);
			
			tegCountries[COUNTRY_INFO.TOTAL_COUNTRIES - (COUNTRY_INFO.TOTAL_COUNTRIES % tegPlayers.length) + offset - 1] = new cCountry(COUNTRY_INFO.NAME[COUNTRY_INFO.TOTAL_COUNTRIES - (COUNTRY_INFO.TOTAL_COUNTRIES % tegPlayers.length) + offset - 1], COUNTRY_INFO.CONTINENT[COUNTRY_INFO.TOTAL_COUNTRIES - (COUNTRY_INFO.TOTAL_COUNTRIES % tegPlayers.length) + offset - 1], tegPlayers[curPlayer].getId(), COUNTRY_INFO.LIMITS[COUNTRY_INFO.TOTAL_COUNTRIES - (COUNTRY_INFO.TOTAL_COUNTRIES % tegPlayers.length) + offset - 1], COUNTRY_INFO.RECT[COUNTRY_INFO.TOTAL_COUNTRIES - (COUNTRY_INFO.TOTAL_COUNTRIES % tegPlayers.length) + offset - 1], COUNTRY_INFO.CARD_IMAGE[COUNTRY_INFO.TOTAL_COUNTRIES - (COUNTRY_INFO.TOTAL_COUNTRIES % tegPlayers.length) + offset - 1], COUNTRY_INFO.ALASKA + COUNTRY_INFO.TOTAL_COUNTRIES - (COUNTRY_INFO.TOTAL_COUNTRIES % tegPlayers.length) + offset - 1);
			lastOne = curPlayer;
			missingCountries--;
			offset++;
		}
		
		// init turn
		do
		{
			cPlayer.turn = random.nextInt() % rules[RULES.MATCH_PLAYERS];
		}
		while(cPlayer.turn < 0);
		
		shownPlayerInfo = cPlayer.turn;
		cPlayer.firstRoundTurn = cPlayer.turn;
		
		initCards();
		// turn ----
		
		// END COUNTRIES AND ITS OWNERS
	}